import apiUrl from '../base'
import axios from '@/libs/axios'
const ledgerQuery = {
	//获取总体动态台账列表
	getRiskOrderOriginList(data) {
		return axios.post(`${apiUrl.risk}v1/RiskOrderOrigin/list`, data)
	},
	//获取总体动态台账统计数据
	getRiskStatistics(data) {
		return axios.post(`${apiUrl.risk}v1/RiskOrderOrigin/statistics`, data)
	},
	//台账详情
	getRiskOrderOriginDetail(prames) {
	    return axios.get(`${apiUrl.risk}v1/RiskOrderOrigin/detail/${prames.id}/${prames.flag}`,'')
	},
	//导出总体动态台账
	exportRiskStatistics(data) {
		return axios({
			method: 'post',
			url: `${apiUrl.risk}v1/RiskOrderOrigin/exportOriginRiskOrder`, 
			data,
			responseType: 'arraybuffer',
		})
	},
	
	//风险销号台账
	getRiskOrderDestroyList(data) {
		return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/list`, data)
	},
	//获取风险销号台账统计数据
	getStatRiskCount(data) {
		return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/statRiskCount`, data)
	},
	//风险销号详情
	getRiskLedgerDetail(prames) {
	    return axios.get(`${apiUrl.risk}v1/RiskOrderDestroy/detail/${prames}`,'')
	},
	getProcessCreator(prames) {
	    return axios.get(`${apiUrl.risk}v1/RiskOrderDestroy/getProcessCreator?riskId=${prames}`,'')
	},
	//导出风险销号台账
	exportRiskOrderDestroy(data) {
		return axios({
			method: 'post',
			url: `${apiUrl.risk}v1/RiskOrderDestroy/export`, 
			data,
			responseType: 'arraybuffer',
		})
	},
	//措施方案台账
	getMeasuresInventory(data) {
		return axios.post(`${apiUrl.risk}v1/Measures/measuresInventory`, data)
	},
	//获取措施方案台账统计数据
	getMeasuresInventoryCount(data) {
		return axios.post(`${apiUrl.risk}v1/Measures/measuresInventoryCount`, data)
	},
	//措施方案详情
	getMeasuresDetail(prames) {
	    return axios.get(`${apiUrl.risk}v1/Measures/details/${prames}`,'')
	},
	//导出措施方案台账
	exportMeasuresInventory(data) {
		return axios({
			method: 'post',
			url: `${apiUrl.risk}v1/Measures/measuresInventoryExport`, 
			data,
			timeout: 60000,
			responseType: 'arraybuffer',
		})
	},
	//动态管控表
	getDynamicControlReport (data) {
		return axios.post(`${apiUrl.risk}v1/DynamicControlReport/list`, data)
	},
	//获取动态管控表统计数据
	getDynamicListStatistics (data) {
		return axios.post(`${apiUrl.risk}v1/DynamicControlReport/statistics`, data)
	},
	//动态管控表详情
	getDynamicControlDetail(prames) {
	    return axios.get(`${apiUrl.risk}v1/DynamicControlReport/detail/${prames}`,'')
	},
	//导出动态管控表
	exportDynamicControlReport(data) {
		return axios({
			method: 'post',
			url: `${apiUrl.risk}v1/DynamicControlReport/export`, 
			data,
			responseType: 'arraybuffer',
		})
	},
	//督导报告
	getDynamicSupervisionReport (data) {
		return axios.post(`${apiUrl.risk}v1/DynamicSupervisionReport/list`, data)
	},
	//督导报告详情
	getReportDetail (prames) {
	  return axios.get(`${apiUrl.risk}v1/DynamicSupervisionReport/detail/${prames}`,'')
	},
	//导出督导报告
	exportReport(data) {
		return axios({
			method: 'post',
			url: `${apiUrl.risk}v1/DynamicSupervisionReport/export`, 
			data,
			responseType: 'arraybuffer',
		})
	},
};
export default ledgerQuery
